package ccpc;

import java.util.Scanner;

public class Problem1002 {

	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int N = cin.nextInt();
		int []sum = new int[N];
		for(int i = 0 ; i < N ; i++) {
				sum[i] = cin.nextInt()+cin.nextInt();
		}
		for(int i:sum) {
			System.out.println(i);
		}
	}

}
